package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    // 插入操作  
    int insert(NursingPlan nursingPlan);
  
    // 查询所有  
    List<NursingPlan> selectAll();
  
    // 根据ID查询  
    NursingPlan selectById(@Param("id") Integer id);
  
    // 更新操作  
    int update(NursingPlan nursingPlan);  
  
    // 删除操作  
    int deleteById(@Param("id") Integer id);

    //分页查询
    Page<NursingPlanVo> search(@Param("name") String name,@Param("status") Integer status);

    //启用禁用
    int updateStatusById(@Param("id") Integer id,@Param("status") Integer status);


}